package com.jack.design_patterns.creational.factory.factory_method;

public class MainTest {

    public static void main(String[] args) {
        AbstractCarFactory carFactory = new MiniCarFactory();
        AbstractCar car = carFactory.createCar();
        car.run();

        carFactory = new RacingCarFactory();
        car = carFactory.createCar();
        car.run();
    }
}
